package com.ruoyi.cms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 cms_article
 *
 * @author zouhuu
 * @date 2022-10-26
 */
public class CmsArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 标题 */
    @Excel(name = "标题")
    private String articleTitle;

    /** 封面图 */
    @Excel(name = "封面图")
    private String articleImg;

    /** 关键字 */
    @Excel(name = "关键字")
    private String articleKeyword;

    /** 简介 */
    @Excel(name = "简介")
    private String articleBrief;

    /** 点击次数 */
    @Excel(name = "点击次数")
    private Integer articleHit;

    /** 详情 */
    @Excel(name = "详情")
    private String articleDetail;

    /** 来源 */
    @Excel(name = "来源")
    private String articleFrom;

    /** 作者 */
    @Excel(name = "作者")
    private String articleAuthor;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private Integer isTop;

    /** 是否热门 */
    @Excel(name = "是否热门")
    private Integer isHot;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 删除状态(0未删除 1已删除) */
    private Integer delFlag;

    /** 数据状态(0正常 1停用) */
    @Excel(name = "数据状态(0正常 1停用)")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setArticleTitle(String articleTitle)
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle()
    {
        return articleTitle;
    }
    public void setArticleImg(String articleImg)
    {
        this.articleImg = articleImg;
    }

    public String getArticleImg()
    {
        return articleImg;
    }
    public void setArticleKeyword(String articleKeyword)
    {
        this.articleKeyword = articleKeyword;
    }

    public String getArticleKeyword()
    {
        return articleKeyword;
    }
    public void setArticleBrief(String articleBrief)
    {
        this.articleBrief = articleBrief;
    }

    public String getArticleBrief()
    {
        return articleBrief;
    }
    public void setArticleHit(Integer articleHit)
    {
        this.articleHit = articleHit;
    }

    public Integer getArticleHit()
    {
        return articleHit;
    }
    public void setArticleDetail(String articleDetail)
    {
        this.articleDetail = articleDetail;
    }

    public String getArticleDetail()
    {
        return articleDetail;
    }
    public void setArticleFrom(String articleFrom)
    {
        this.articleFrom = articleFrom;
    }

    public String getArticleFrom()
    {
        return articleFrom;
    }
    public void setArticleAuthor(String articleAuthor)
    {
        this.articleAuthor = articleAuthor;
    }

    public String getArticleAuthor()
    {
        return articleAuthor;
    }
    public void setPublishTime(Date publishTime)
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime()
    {
        return publishTime;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }
    public void setIsTop(Integer isTop)
    {
        this.isTop = isTop;
    }

    public Integer getIsTop()
    {
        return isTop;
    }
    public void setIsHot(Integer isHot)
    {
        this.isHot = isHot;
    }

    public Integer getIsHot()
    {
        return isHot;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("categoryId", getCategoryId())
                .append("articleTitle", getArticleTitle())
                .append("articleImg", getArticleImg())
                .append("articleKeyword", getArticleKeyword())
                .append("articleBrief", getArticleBrief())
                .append("articleHit", getArticleHit())
                .append("articleDetail", getArticleDetail())
                .append("articleFrom", getArticleFrom())
                .append("articleAuthor", getArticleAuthor())
                .append("publishTime", getPublishTime())
                .append("categoryName", getCategoryName())
                .append("isTop", getIsTop())
                .append("isHot", getIsHot())
                .append("sort", getSort())
                .append("delFlag", getDelFlag())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
